<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改服务对象报餐记录')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-meal-edit" th:object="${mealServiceObjects}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">上报时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="reportDate" th:value="${#dates.format(mealServiceObjects.reportDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">班级：</label>
                <div class="col-sm-8">
                    <input name="className" th:field="*{className}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">填报人：</label>
                <div class="col-sm-8">
                    <input name="reportingPerson" th:field="*{reportingPerson}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">早-孤儿：</label>
                <div class="col-sm-8">
                    <input name="mOrphan" th:field="*{mOrphan}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">早-事无：</label>
                <div class="col-sm-8">
                    <input name="mNothing" th:field="*{mNothing}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">早-政府：</label>
                <div class="col-sm-8">
                    <input name="mGove" th:field="*{mGove}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">早-特困：</label>
                <div class="col-sm-8">
                    <input name="mPoor" th:field="*{mPoor}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">早-自费：</label>
                <div class="col-sm-8">
                    <input name="mExpense" th:field="*{mExpense}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">早-餐标：</label>
                <div class="col-sm-8">
                    <input name="mDining" th:field="*{mDining}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">午-孤儿：</label>
                <div class="col-sm-8">
                    <input name="lOrphan" th:field="*{lOrphan}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">午-事无：</label>
                <div class="col-sm-8">
                    <input name="lNothing" th:field="*{lNothing}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">午-政府：</label>
                <div class="col-sm-8">
                    <input name="lGove" th:field="*{lGove}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">午-特困：</label>
                <div class="col-sm-8">
                    <input name="lPoor" th:field="*{lPoor}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">午-自费：</label>
                <div class="col-sm-8">
                    <input name="lExpense" th:field="*{lExpense}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">午-餐标：</label>
                <div class="col-sm-8">
                    <input name="lDining" th:field="*{lDining}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">晚-孤儿：</label>
                <div class="col-sm-8">
                    <input name="dOrphan" th:field="*{dOrphan}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">晚-事无：</label>
                <div class="col-sm-8">
                    <input name="dNothing" th:field="*{dNothing}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">晚-政府：</label>
                <div class="col-sm-8">
                    <input name="dGove" th:field="*{dGove}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">晚-特困：</label>
                <div class="col-sm-8">
                    <input name="dPoor" th:field="*{dPoor}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">晚-自费：</label>
                <div class="col-sm-8">
                    <input name="dExpense" th:field="*{dExpense}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">晚-餐标：</label>
                <div class="col-sm-8">
                    <input name="dDining" th:field="*{dDining}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "meal/meal";
        $("#form-meal-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-meal-edit').serialize());
            }
        }

        $("input[name='reportDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>